﻿/// <reference path="../quintus/v0.1.6/quintus-all.js" /> 

Q.scene("officeLevel", function (stage) {
    var background = new Q.TileLayer({ dataAsset: "map.office.tmx", layerIndex: 0, sheet: "officeMapBackground", tileW: 32, tileH: 32, type: Q.SPRITE_NONE });
    stage.insert(background);
    
    stage.insert(new Q.UI.Text({
        x: 200, y: 10, fill: "#FFFFFF", label: "In the office - deleting email"
    }));

    Q.audio.play("background-office.mp3", { loop: true });

    Q.input.on("keydown", this, startNextScene);
    
    function startNextScene() {
        Q.audio.stop("background-office.mp3");
        Q.stageScene("streetsideLevel");
    }
});